﻿@inherits RenderViewPage
@using System.Web.Mvc.Html;
@using Umbraco.Cms.Web;
@using PBDesk.com.Extension.UmbHelper;
@{
	Layout = "_PBDeskLayout.cshtml";
	string moreArticles = string.Empty;
	string linkFormat = "<li style=\"background:none\"><a href=\"{0}\" title=\"Goto {1} Articles\" >{2}</a></li>";
	//foreach (var year in DynamicModel.AbstractContainers)
	//{ 
	//foreach (var page in year.ArticlePages)
	//{

	//        moreArticles += String.Format(linkFormat, page.Url, page.Name, page.Name);
		
	//}
	//}
}

@section head
{

}

@section TopBanner
{

}

@section BodyTop
{
  @Umbraco.RenderMacro("breadCrumb")
}

@section BodyBottom
{

}

@section GrayBanner
{

}

@section BottomBanner
{

}
<div id="art-content-wrapper" style="background:none">
  <div id="art-main-wrapper">
	<div id="artmain">
	  <div id="contents">
		<div id="left">					
		  <div id="portfolio">
			<br />
			@foreach (var year in DynamicModel.AbstractContainers)
			{ 
			<div class="site">
			  <div id="art-title" class="iconArticles64">
				<span class="artTitle">@DynamicModel.Name : Articles</span>
				<span class="artSubTitle">Technical Knowledgebase(@year.Name)</span>
			  </div>
			  <div class="layer">
				<span><a href="#" target="_blank"><img src="http://cdn.pbdesk.com/images/social/rss_blue.png" alt="Read Article" height="33" width="33" /></a></span>
			  </div>
			  <div class="portfolio_image rssFeed">
				<ul class="resourcelist">
				  @foreach (var page in year.ArticlePages)
				  { 
					<li class="rssRow">
					  <h4><a href="@page.Url" title="@page.Name">@page.MetaTitle: @page.ItemTitle</a></h4>
					  <div class="rssRow-content">
                        <div>
						  <div class="rssRow-content-thumbnail">
						    <img height="50px" width="70px" src="http://i.msdn.microsoft.com/ee402630.CSharp_lg(en-us,MSDN.10).png" alt="LINQ and Productivity">
						  </div>						
						  @Html.Raw(page.ItemDescription)
                        </div>
                        <div class="rssRow-content-dt">Tags: test, test, testtest, test test</div>
					  </div>
					</li>
				  }				  
				</ul>
			  </div>
			</div>
			}
			<br/>
		  </div>
		  <br />
		  @Html.Partial("Common/MoreArticlesByCat_c")
		  @Html.Partial("Common/MoreArticlesByTag_c")
		  @Html.Partial("Common/ArtOfDay_v")	
		</div>
	  </div>
	</div>
	<div class="clear"></div>
  </div><!-- end art-main-wrapper -->
  <div id="art-sidebar-wrapper">
	<div id="artsidebar" class="artsidebar">
	  @Umbraco.RenderMacro("sidebarMoreArticles")
	  @Umbraco.RenderMacro("sidebarMoreTechNews")				   
	  <div class="artwidget">
		<h2 class="art-sidebar-header">Related Links</h2>
		<div class="art-widget-content">
			<div>
				@Umbraco.Field("sidebarCallout", removeParagraphTags: true)
			</div>
		</div>
	  </div>
	<div class="artwidget">
		<h2 class="art-sidebar-header">News Updates</h2>
		<div class="art-widget-content">
			<div>
				<a href="/technews/scitech/">Sci &amp; Tech</a>   <a href="/technews/csharp/">C#</a>   <a href="/technews/aspnet/">ASP.Net</a>   <a href="/technews/silverlight/">Silverlight</a>   <a href="/technews/vbnet/">VB.Net</a>   <a href="/technews/msnet/">Microsoft.Net</a>   <a href="/technews/umbraco/">Umbraco</a>   
			</div>
		</div>
	</div>
	<div class="artwidget">
		<h2 class="art-sidebar-header">More Articles</h2>
		<div class="art-widget-content">
			<div>
				<a href="/articles/csharp/">C#</a>   <a href="/articles/aspnet/">ASP.Net</a>   <a href="/articles/umbraco/">Umbraco</a>   <a href="/articles/general/">General</a>   <a href="/articles/toolsutils/">Tools &amp; Utils</a>   
			</div>
		</div>
	</div>
		</div><!-- end art-sidebar-->
	</div><!-- end art-sidebar-wrapper -->
	<div class="clear">&nbsp;</div>
</div>
<script type="text/javascript">
	$(".rssRow:odd").addClass("even");
	$(".rssRow:even").addClass("odd");
</script>